package com.tucy.logistics.modules.fastMail.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tucy.logistics.common.dto.fastMail.QueryMailDto;
import com.tucy.logistics.common.entity.fastMail.FastMail;
import com.tucy.logistics.common.result.Result;
import com.tucy.logistics.modules.fastMail.service.FastMailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Api(tags = "快递信息")
@RestController
@RequestMapping("/fastMail")
public class FastMailController {

    @Autowired
    FastMailService fastMailService;

    @ApiOperation(value = "查询快递信息")
    @PostMapping("/queryFastMail")
    public Result<Page<FastMail>> queryFastMail(@RequestBody QueryMailDto queryMailDto) {
        return Result.success(fastMailService.queryFastMail(queryMailDto));
    }



}
